# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper

	def render_name(id)
		if(current_user.id == id)
			return "YOU"
		else
			return User.find(id).name.upcase
		end
	end
	
	def format_date(date)
	  date.strftime("%Y/%m/%d/ at %I:%M%p")
  end
  
end
